package com.wfuhui.modules.hospital.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.hospital.dao.AreaDao;
import com.wfuhui.modules.hospital.entity.AreaEntity;
import com.wfuhui.modules.hospital.service.AreaService;



@Service("areaService")
public class AreaServiceImpl implements AreaService {
	@Autowired
	private AreaDao areaDao;
	
	@Override
	public AreaEntity queryObject(Integer id){
		return areaDao.queryObject(id);
	}
	
	@Override
	public List<AreaEntity> queryList(Map<String, Object> map){
		return areaDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return areaDao.queryTotal(map);
	}
	
	@Override
	public void save(AreaEntity area){
		areaDao.save(area);
	}
	
	@Override
	public void update(AreaEntity area){
		areaDao.update(area);
	}
	
	@Override
	public void delete(Integer id){
		areaDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		areaDao.deleteBatch(ids);
	}
	
}
